package com.igeek.base.ch02;

import java.util.Scanner;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/10 9:37
 */
public class Demo1 {
    public static void main(String[] args) {
        Scanner input= new Scanner(System.in);
        System.out.println("请输入您哪天订票:");
        double a =input.nextDouble();
        double b=100;
        if (a<=1.03 && a>=1.01) {
            System.out.println("无任何优惠，票价"+b);
        }else if (a<=5.03 && a>=5.01){
            System.out.println("无任何优惠，票价"+b);
        } else if (a<=10.07 && a>=10.01) {
            System.out.println("无任何优惠，票价"+b);
        }else {
            System.out.println("票价八折，票价"+b*0.8);

        }
    }
}
